import common from './common'
const paths = {
  multiProcess: 'custom/project/multiProcess',
  parentProcessReturnList: 'custom/project/parentProcessReturnList',
  returnTaskPre: 'custom/project/process/returnTaskPre'
}
const service = {};
(function (service) {
  /**
   * 检测认证是否已开启
   */
  service.multiProcess = (projectId) => {
    return common.get(paths.multiProcess, { projectId })
  }
  service.parentProcessReturnList = (projectId, processLevel) => {
    return common.get(paths.parentProcessReturnList, { projectId, processLevel })
  }
  service.returnTaskPre = (params, data) => {
    return common.post(paths.returnTaskPre, params, data)
  }
})(service)

export default service
